package com.meila.design.mode.visitor.uml;

/**
 * ***********************************************************
 *
 * @类名 : cms {XXX.java}
 * @DESCRIPTION : ===========XXXX==================
 * @AUTHOR :  meila-x->reese
 * @DATE : 2016/3/2
 * ***********************************************************
 */
public class Client {
    public static void main(String[] args) {
        ElementStruct struct = new ElementStruct();
        struct.setConcreteElementA(new ConcreteElementA());
        struct.setConcreteElementB(new ConcreteElementB());

        Visitor visitor1 = new ConcreteVisitor1();
        Visitor visitor2 = new ConcreteVisitor2();

        struct.accept(visitor1);
    }
}
